package com.sj.mapper;


import com.sj.entity.Image;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ImageMapper {
    @Select("SELECT * FROM Images")
    List<Image> getAll();

    Image getOne(Integer id);

    @Insert("INSERT INTO Images (description, imgUrl) VALUES (#{description}, #{imgUrl})")
    Integer insert(Image image);
}
